package com.wenmingliang.blog.service;

import com.wenmingliang.blog.vo.Result;
import com.wenmingliang.blog.vo.params.ArticleParam;
import com.wenmingliang.blog.vo.params.PageParams;

public interface ArticleService {

    /**
     *  分页查询文章列表
     * @param pageParams
     * @return
     */
    Result listArticle(PageParams pageParams);

    Result hostArticles(int limit);

    Result newArticles(int limit);

    /**
     * 文章归档
     * @return
     */
    Result listArchives();

    /**
     * 查询文章详情
     * @param id
     * @return
     */
    Result findArticleById(Long id);

    /**
     * 文章发布
     * @return
     */
    Result publish(ArticleParam articleParam);
}
